package com.bruce.springai.service;

import org.springframework.ai.document.Document;

import java.util.List;

public interface VectorStoreService {

    /**
     * 保存向量
     *
     * @param userId
     * @param message
     * @return
     */
    boolean saveVector(String userId, String message);


    boolean loadData() ;

    List<Document> ask(String question) ;

    /**
     * 获取历史记录
     *
     * @param userId
     * @return
     */
    List<Document> getHistory(String userId, String message);
}
